#region Copyright

// // ======================================================
// //     Copyright (c) 2011 Toulr All rights reserved.
// //    
// //     The use and distribution terms for this software are contained in the file
// //     named license.txt, which can be found in the root of this distribution.
// //     By using this software in any fashion, you are agreeing to be bound by the
// //     terms of this license.
// //    
// //     You must not remove this notice, or any other, from this software.
// // ======================================================

#endregion

#region Using Namespaces

using System;
using System.Runtime.Serialization;

#endregion

namespace Toulr.Util.Logging
{

    #region

    #endregion

    /// <summary>
    ///   the logger exception
    /// </summary>
    /// Author     :James Cheung
    /// MachineName:HJZHANG@METARNE-HJZHANG
    /// DateTime   :2009-1-21 16:45
    [Serializable]
    public class LoggerException : Exception
    {
        /// <summary>
        ///   Initializes a new instance of the <see cref = "LoggerException" /> class.
        /// </summary>
        /// <param name = "message">The message.</param>
        /// Author     :James Cheung
        /// MachineName:HJZHANG@METARNE-HJZHANG
        /// DateTime   :2009-1-21 16:45
        public LoggerException(String message) : base(message)
        {
        }

        /// <summary>
        ///   Initializes a new instance of the <see cref = "LoggerException" /> class.
        /// </summary>
        /// <param name = "message">The message.</param>
        /// <param name = "innerException">The inner exception.</param>
        /// Author     :James Cheung
        /// MachineName:HJZHANG@METARNE-HJZHANG
        /// DateTime   :2009-1-21 16:45
        public LoggerException(String message, Exception innerException) : base(message, innerException)
        {
        }

        /// <summary>
        ///   Initializes a new instance of the <see cref = "LoggerException" /> class.
        /// </summary>
        /// <param name = "info">The <see cref = "T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
        /// <param name = "context">The <see cref = "T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
        /// <exception cref = "T:System.ArgumentNullException">
        ///   The <paramref name = "info" /> parameter is null.
        /// </exception>
        /// <exception cref = "T:System.Runtime.Serialization.SerializationException">
        ///   The class name is null or <see cref = "P:System.Exception.HResult" /> is zero (0).
        /// </exception>
        /// Author     :James Cheung
        /// MachineName:HJZHANG@METARNE-HJZHANG
        /// DateTime   :2009-1-21 16:45
        public LoggerException(SerializationInfo info, StreamingContext context) : base(info, context)
        {
        }
    }
}